<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
| Hooks
| -------------------------------------------------------------------------
| This file lets you define "hooks" to extend CI without hacking the core
| files.  Please see the user guide for info:
|
|	http://codeigniter.com/user_guide/general/hooks.html
|
*/
$config = array(
		'Account/Create' => array(
					array(
							'field' => 'accountName',
							'label' => 'Account Name',
							'rules' => 'required|min_length[5]|max_length[12]|is_unique[accounts.name]|alpha_numeric|callback__filter_account_name'
						 ),
					array(
							'field' => 'email',
							'label' => 'Email',
							'rules' => 'required|valid_email|is_unique[accounts.email]'
						 ),
					 array(
						'field' => 'recaptcha_response_field',
						'label' => 'reCaptca',
						'rules' => 'callback__checkCaptcha'
					 ),
					 array(
						'field' => 'accountPassword',
						'label' => 'Password',
						'rules' => 'required|min_length[5]|max_length[25]|alpha_numeric|matches[accountConfPassword]'
					 ),
					 array(
						'field' => 'accountConfPassword',
						'label' => 'Confirmação Password',
						'rules' => 'required|min_length[5]|max_length[25]|alpha_numeric'
					 )
					),
		'Account/Login' => array(
					array(
							'field' => 'name',
							'label' => 'Account Name',
							'rules' => 'required|min_length[5]|alpha_numeric'
						 ),
					array(
							'field' => 'password',
							'label' => 'Password',
							'rules' => 'required|min_length[5]|alpha_numeric'
						 )
			),
		'Account/RecoveryKey' => array(
					array(
							'field' => 'recoverykey',
							'label' => 'Recovery Key',
							'rules' => 'required|min_length[5]'
						 ),
			),
		'Account/NewPass' => array(
					array(
							'field' => 'conf_new_pass',
							'label' => 'Confirm Password',
							'rules' => 'min_length[5]|max_length[25]|alpha_numeric'
						 ),
					array(
							'field' => 'new_pass',
							'label' => 'Password',
							'rules' => 'required|min_length[5]|max_length[25]|alpha_numeric|matches[conf_new_pass]'
						 ),

			)
	);

/* End of file hooks.php */
/* Location: ./application/config/hooks.php */